﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Win32Wrapper.Win32
{
    public struct _WindowInfo
    {
        public uint cbSize;
        public _Rect rcWindow;
        public _Rect rcClient;
        public WindowStyles dwStyle;
        public ExtendedWindowStyles dwExStyle;
        public uint dwWindowStatus;
        public uint cxWindowBorders;
        public uint cyWindowBorders;
        public ushort atomWindowType;
        public ushort wCreatorVersion;
    }

    public class WindowInfo
    {
        public WindowInfo() { }
        public WindowInfo(_WindowInfo winfo)
        {
            cbSize = winfo.cbSize;
            rcWindow = new Rect(winfo.rcWindow);
            rcClient = new Rect(winfo.rcClient);
            dwStyle = winfo.dwStyle;
            dwExStyle = winfo.dwExStyle;
            dwWindowStatus = winfo.dwWindowStatus;
            cxWindowBorders = winfo.cxWindowBorders;
            cyWindowBorders = winfo.cyWindowBorders;
            atomWindowType = winfo.atomWindowType;
            wCreatorVersion = winfo.wCreatorVersion;
        }

        public uint cbSize { get; set; }
        public Rect rcWindow { get; set; }
        public Rect rcClient { get; set; }
        public WindowStyles dwStyle { get; set; }
        public ExtendedWindowStyles dwExStyle { get; set; }
        public uint dwWindowStatus { get; set; }
        public uint cxWindowBorders { get; set; }
        public uint cyWindowBorders { get; set; }
        public ushort atomWindowType { get; set; }
        public ushort wCreatorVersion { get; set; }
    }

}
